package com.strategy;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class CashMain {
	private static Logger logger = LoggerFactory.getLogger(CashMain.class);

	public static void main(String[] args) {
		String type = "打8折";
		CashContext context = new CashContext(type);
		double price = 1.2;
		double cnt = 10;
		double money = price * cnt;
		double totalPrices = context.getResult(money);
		logger.info("单价:{},数量 :{}  合计: {}", price, cnt, totalPrices);
	}
}
